/*
 * Copyright 2018 datagear.tech
 *
 * Licensed under the LGPLv3 license:
 * http://www.gnu.org/licenses/lgpl-3.0.html
 */

package org.datagear.management.domain;

import java.util.Date;

import org.datagear.analysis.support.html.HtmlTplDashboardWidget;
import org.springframework.beans.BeanUtils;

/**
 * {@linkplain HtmlTplDashboardWidget}实体。
 * 
 * @author datagear@163.com
 */
public class HtmlContentDashboardEntity implements Entity<String>, CloneableEntity {
	private static final long serialVersionUID = 1L;

	/** 看板id */
	private String id;

	/** 模板名 */
	private String template;

	/** 模板内容 */
	private String content;

	/** 创建时间 */
	private Date createTime;

	public HtmlContentDashboardEntity() {
		super();
		this.createTime = new Date();
	}

	public HtmlContentDashboardEntity(String id, String template, String content) {
		this.id = id;
		this.template = template;
		this.content = content;
		this.createTime = new Date();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public HtmlContentDashboardEntity clone() {
		HtmlContentDashboardEntity entity = new HtmlContentDashboardEntity();
		BeanUtils.copyProperties(this, entity);

		return entity;
	}

}
